package com.bjc2.singleton.demo1;

/**
 * @program: DesignPattern
 * @description: 饿汉式
 * @author: bjc
 * @create: 2022-03-29 20:29
 */
public class Singleton {

    private static final Singleton INSTANCE = new Singleton();

    private Singleton(){}

    public static Singleton getInstance(){
        return INSTANCE;
    }
}
